package com.campus.shop.controller.web;


import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.HashMap;

import com.campus.shop.common.Result;

import com.campus.shop.service.MessageService;

import org.springframework.web.bind.annotation.RestController;

/**
 * 控制器
 *
 * @author xr
 * @since 2023-12-362 17:03:51
 */
@RestController
@RequestMapping("/web/message")
public class MessageController {

    @Resource
    private MessageService messageService;

    //获取商品评论
    @PostMapping("/get-goods-message")
    public Result getGoodsMessage(@RequestParam("goodsId") Integer goodsId,@RequestParam("page") Integer page){
        HashMap<String, Object> res = messageService.getGoodsMessage(goodsId,page);
        return Result.success(res);
    }

}


